<div style="padding:5px;font-family: arial;">
<div align="center">
<h2>Danh sách nạp tiền</h2>
</div>

<style type="text/css">
table,th,td
{

}
</style>
<div>
<div align="center">
<p>Chuyển tới trang </p>
<?php 
$current_page = isset($_GET['page']) ? $_GET['page']:1;

if ($current_page<=4){
	for  ($i=1;$i<$current_page+4;$i++)
		if ($i<=$len){
			if ($i==$current_page){
				echo CHtml::link('<span style="font-size:2em;">'.$i.'</span>','/site/listalldeposit/page/'.$i).'   ';
			}else{
			echo CHtml::link($i,'/site/listalldeposit/page/'.$i).'   ';
			}
		}
	echo '  ..  '.CHtml::link(($current_page+14),'/site/listalldeposit/page/'.($current_page+14)).'   ';
	echo '  ..  '.CHtml::link($len,'/site/listalldeposit/page/'.$len).'   ';
}else{
	for ($i=1;$i<=3;$i++)
		if ($i<$current_page-3)
		echo CHtml::link($i,'/site/listalldeposit/page/'.$i).'   ';
	echo ' .. ';
	if ($current_page>13)
		echo CHtml::link($current_page-10,'/site/listalldeposit/page/'.($current_page-10)).' .. ';
	for ($i=$current_page-3;$i<=$current_page+3;$i++)
		if ($i<=$len){
			if ($i==$current_page){
				echo CHtml::link('<span style="font-size:2em;">'.$i.'</span>','/site/listalldeposit/page/'.$i).'   ';
			}else{
			echo CHtml::link($i,'/site/listalldeposit/page/'.$i).'   ';
			}
		}
	if ($current_page<$len-10)
	echo '  ..  '.CHtml::link($current_page+10,'/site/listalldeposit/page/'.($current_page+10)).'   ';
	if ($current_page+3<$len)
	echo '  ..  '.CHtml::link($len,'/site/listalldeposit/page/'.$len).'   ';
}
echo '<hr/>';
//for  ($i=1;$i<$len;$i++)
	//echo CHtml::link($i,'/site/listalldeposit/page/'.$i).'   ';
?>
</div>
<table style=""  width="100%" border="1" cellpadding="4" cellspacing="4" >
	<tr style="color: blue">
		<td style="font-size:12px;border: thin solid white" bgcolor="#DADADA ">
		User name
		</td>
		<td style="font-size:12px;border: thin solid white" bgcolor="#DADADA">
		Số tiền nạp
		</td>
		<td style="font-size:12px;border: thin solid white" bgcolor="#DADADA ">
		Ngày nạp
		</td>		
	</tr>
	<tr><td></td><td></td></tr>
<?php 
foreach ($list as $wd)
	{
?>
<tr>
	<td style="padding:7px;padding-left:10px;font-size:12px;border: thin solid orange;"><?php echo $wd['user_name']; ?>
	</td>
	<td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $wd['lr_amount']; ?>
	</td>
	<td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $wd['deposit_date']; ?>
	</td>	
</tr>
<tr><td></td><td></td></tr>
<?php 	}

?>
</table>

</div>

</div>